using System;
using System.Collections.Generic;
using System.Text;

namespace StudentManagementApplication.Business
{
    class SubjectService
    {
        private DAO.SubjectDAO subjectDAO = new DAO.SubjectDAO();

        public void InsertSubject(Entities.Subject subject)
        {
            subjectDAO.InsertSubject(subject);
        }

        public void UpdateSubject(Entities.Subject subject)
        {
            subjectDAO.UpdateSubject(subject);
        }

        public void DeleteSubject(string sSubjectID)
        {
            subjectDAO.DeleteSubject(sSubjectID);
        }

        public List<Entities.Subject> GetAllSubjects()
        {
            return subjectDAO.GetAllSubjects();
        }

        public Entities.Subject GetSubjectBySubjectID(string sSubjectID)
        {
            return subjectDAO.GetSubjectBySubjectID(sSubjectID);
        }

        public List<Entities.Subject> GetSubjectByClassID(string sClassID)
        {
            return subjectDAO.GetSubjectByClassID(sClassID);
        }

        public List<Entities.Subject> GetSubjectByStaffID(string sStaffID)
        {
            return subjectDAO.GetSubjectByStaffID(sStaffID);
        }
    }
}
